package edu.whu.puppygo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import edu.whu.puppygo.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;

/**
 * @author guanruwang
 * @date 2023/11/14$
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class Question extends BaseEntity {

    @ApiModelProperty(value = "问题类型")
    private QuestionTypeEnum type;
    @ApiModelProperty(value = "问题内容")
    private String content;
    @ApiModelProperty(value = "问题答案")
    private Integer answer;
    @ApiModelProperty(value = "选项A")
    private String optionA;
    @ApiModelProperty(value = "选项B")
    private String optionB;
    @ApiModelProperty(value = "选项C")
    private String optionC;
    @ApiModelProperty(value = "选项D")
    private String optionD;
    @ApiModelProperty(value = "问题解析")
    private String analysis;
    @ApiModelProperty(value = "用户id")
    @JsonIgnore
    private long userId;
    @ApiModelProperty(value = "问题是否完成")
    private boolean isComplete;
    @ApiModelProperty(value = "问题标签")
    private String tags;
}
